package cn.topcodes.tcsf.admin.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class SystemPropertyForm implements Idable {

	private Long id;

	@NotBlank(message = "属性名称不能为空")
	@Length(min = 1,max = 50,message = "属性名称最大长度为50个字符")
	private String name;

	@Length(min = 0,max = 10000,message = "属性值最大长度为10000个字符")
	private String value;

	@Length(min = 1,max = 20,message = "属性数据类型最大长度为20个字符")
	private String type;

	@Length(min = 0,max = 100,message = "描述最大长度为100个字符")
	private String description;

}
